﻿<%@ Page Language="C#" AutoEventWireup="true" EnableEventValidation="false" CodeBehind="mailview.aspx.cs"
    Inherits="Eugenhome.Atrium.Mail.Web.MailView" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Mails</title>
    <script src="../default.js" type="text/javascript"></script>
    <link rel="stylesheet" type="text/css" href="../style.css" />
    <meta name="robots" content="noindex" />
    <meta http-equiv="expires" content="0" />
    <!----> <meta http-equiv="refresh" content="15">
</head>
<body>
    <!--MENU-->
    <form id="form1" runat="server">
    <table class="gadgetMenu">
        <tr>
            <td style="width: 150px; text-align: left;">
                    <asp:Image ID="imgReload" runat="server" BorderWidth="0"/>
            </td>
            <td style="text-align: right;">
                <a href="https://mail.google.com/mail/u/0/?account_id=eugen.dolgi%40gmail.com#inbox?compose=new"
                    target="_blank" title="Neue Nachricht">
                    <img src="gui/newmail.png" class="gadgetToolbarButton"></a>
                <%if (_gmc.Method.Equals("imap"))
                  { %>
                <asp:ImageButton ID="btnDeleteSelection" runat="server" ImageUrl="gui/delete.gif"
                    OnClick="btnDeleteSelection_Click" class="gadgetToolbarButton" />
                <% } %>
            </td>
        </tr>
    </table>
    <!--menu-->
    <table cellpadding="0" cellspacing="0" class="gadgetBody">
        <asp:Repeater ID="repMails" runat="server">
            <ItemTemplate>
                <%if (_gmc.Method.Equals("imap"))
                  { %>
                <tr>
                    <td class="tdUnderline" onmouseover="show('mail<%#DataBinder.Eval(Container.DataItem, "ID")%>')"
                        onmouseout="hide('mail<%#DataBinder.Eval(Container.DataItem, "ID")%>')">
                        <div style="height: 32px; overflow: hidden; line-height: 15px;">
                            <%#DataBinder.Eval(Container.DataItem, "MessageCaption")%>
                        </div>
                    </td>
                    <td class="tdUnderline" onmouseover="show('mail<%#DataBinder.Eval(Container.DataItem, "ID")%>')"
                        onmouseout="hide('mail<%#DataBinder.Eval(Container.DataItem, "ID")%>')">
                        <div id="mail<%#DataBinder.Eval(Container.DataItem, "ID")%>" style="height: 32px;
                            line-height: 15px; vertical-align: middle; visibility: hidden;">
                            <input type="checkbox" id="cbmail<%#DataBinder.Eval(Container.DataItem, "ID")%>"
                                name="cbmail<%#DataBinder.Eval(Container.DataItem, "ID")%>" />
                        </div>
                    </td>
                </tr>
                <% } %>
                <%if (_gmc.Method.Equals("atom"))
                  { %>
                <tr>
                    <td class="tdUnderline">
                        <div style="height: 32px; overflow: hidden; line-height: 15px;">
                            <a target="_top" href="<%#DataBinder.Eval(Container.DataItem, "OpenLink")%>">
                                <%#DataBinder.Eval(Container.DataItem, "MessageCaption")%>
                            </a>
                        </div>
                    </td>
                </tr>
                <% } %>
            </ItemTemplate>
        </asp:Repeater>
    </table>
    </form>
</body>
</html>
